package com.lh.user.config;

import com.lh.common.exception.WebExceptionHandler;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * TODO liuhe 考虑放到zuul网关去做此工作
 * @author liuhe
 * @date 2020/07/06
 */
@Configuration
public class WebConfig {

    @Bean
    public WebExceptionHandler getWebExceptionHandler() {
        WebExceptionHandler webExceptionHandler = new WebExceptionHandler();
        return webExceptionHandler;
    }
}
